package com.xdf.imoocdatav.controller;

import com.xdf.imoocdatav.service.DatavReportdataService;
import com.xdf.imoocdatav.utils.JsonResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@CrossOrigin(origins = "*",maxAge = 3600)
@RestController
@RequestMapping("/datavReportdata")
public class DatavReportdataServiceController {

    @Autowired
    private DatavReportdataService service;

    @GetMapping("/selectAll")
    public JsonResult selectAll(){
        return JsonResult.ok(service.selectAll());
    }
}
